import request from '@/utils/request-unimall'
import Qs from 'qs'

export function initSearchEngine() {
  return request({
    method: 'post',
    url: "/web/admin-search/init",
    data: Qs.stringify({
      // _gp: 'admin.search',
      // _mt: 'init'
    })
  })
}

export function rebuildSearchEngine() {
  return request({
    method: 'post',
    url: "/web/admin-search/rebuild",
    data: Qs.stringify({
      // _gp: 'admin.search',
      // _mt: 'rebuild'
    })
  })
}

export function reloadPropertiesSearchEngine() {
  return request({
    method: 'post',
    url: "/web/admin-search/reload-properties",
    data: Qs.stringify({
      // _gp: 'admin.search',
      // _mt: 'reloadProperties'
    })
  })
}
